package org.springblade.upgrade.log.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springblade.core.mp.base.BaseEntity;

/**
 * 数据模型
 *
 * @author qp
 * @version 2024-01-02
 */
@TableName("upgrade_package_log")
@Data
public class PackageLog extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "附件地址")
    private String link;

    @ApiModelProperty(value = "附件域名")
    private String domainUrl;

    @ApiModelProperty(value = "附件名称")
    private String name;

    @ApiModelProperty(value = "附件原名")
    private String originalName;

    @ApiModelProperty(value = "附件拓展名")
    private String extension;

    @ApiModelProperty(value = "附件大小")
    @JsonSerialize(using = ToStringSerializer.class, nullsUsing = NullSerializer.class)
    private Long attachSize;

    @ApiModelProperty(value = "stationCode")
    private String stationCode;

    @ApiModelProperty(value = "fileType")
    private String fileType;

    @ApiModelProperty(value = "uploadType")
    private String uploadType;

    @ApiModelProperty(value = "配置ID")
    private Long configId;

    @ApiModelProperty(value = "保存地址")
    private String saveAddress;

    @ApiModelProperty(value = "模块名称")
    private String moduleName;

    @ApiModelProperty(value = "备注")
    private String remark;
}